import {
	ENUM_LOG_LEVEL,
	ENUM_LOG_TYPE
} from "../../static/enum";

class LogData {
	// 构造函数，接收三个参数：日志级别、日志类型、日志信息
	constructor(level = ENUM_LOG_LEVEL.DEBUG, type = ENUM_LOG_TYPE.OTHER_LOG, msg) {
		// 将参数赋值给类的属性
		this.type = type;
		this.msg = msg;
		this.level = level
		// 获取当前时间戳
		this.time = new Date().getTime();
	}
}

module.exports = LogData;